package com.ea.eadp.nexus.test.pageDefinition;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created by doma on 10/28/2014.
 */
public class OriginIdUP_Web extends BasePage {
    private By btnNext = By.xpath(".//*[@id='panel-upgrade']/div[2]/a/span");
    private By Origin_IN = By.id("originId");

    public OriginIdUP_Web(WebDriver driver) {
        super(driver, OriginIdUP_Web.class);
    }

    public void setOriginId(String OriginId){
        driver.switchTo().window(this.operationWindowHandle);
        waitForWebElementPresent(Origin_IN);
        driver.findElement(Origin_IN).sendKeys(OriginId);
    }
    public void nextStep() {
        driver.switchTo().window(this.operationWindowHandle);
        waitForWebElementPresent(btnNext);
        driver.findElement(btnNext).click();
    }
}